import itchat
@itchat.msg_register(['Text','Map','Card','Note','Sharing'])
def text_reply(msg):
    itchat.send('%s:%s'%msg['Type'],msg['Text'],msg['FromUserName'])
itchat.auto_login()
itchat.run()